package top.yaofengqiao.springcloudsimple.auth.biz.trigger.dubbo;

import org.apache.dubbo.config.annotation.DubboService;
import top.yaofengqiao.springcloudsimple.auth.api.IAuthDubboService;
import top.yaofengqiao.springcloudsimple.auth.api.dto.TokenAuthResultDTO;
import top.yaofengqiao.springcloudsimple.auth.biz.domain.auth.service.IAuthService;

import javax.annotation.Resource;

/**
 * @author yfq
 * @date 2024/6/1 12:37
 * @description
 */
@DubboService
public class AuthDubboService implements IAuthDubboService {
    @Resource
    private IAuthService authService;

    @Override
    public TokenAuthResultDTO authentication(String token) {
        return authService.authentication(token);
    }

}
